<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header_new"); ?>
<div class='container' style="padding:10px 0px">
	<div class='left fl'>
		<div class='slide fl'>
			<!-- 焦点图推荐 1-->
			<div class="flexslider"> 
			      <ul class="slides"> 
			      	<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=e35e5383c512595e3487d4a3e5d619f1&action=position&posid=1&order=listorder+desc&num=4\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'position')) {$data = $content_tag->position(array('posid'=>'1','order'=>'listorder desc','limit'=>'4',));}?>
			      	<?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>
			      	<li><a href="<?php echo $v['url'];?>"><img src="<?php echo $v['thumb'];?>" style=""/></a>
                       <div class='slide-mask'>
                       	<span><?php echo $v['title'];?></span>
                       </div>
			         </li>
			      	<?php $n++;}unset($n); ?> 
			      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
			         <!-- <li><a href=""><img src="<?php echo IMG_PATH;?>dianjing/sy/1.jpg" style=""/></a>
                       <div class='slide-mask'>
                       	<span>二追三魔王降临 RTZ影魔助EG登顶TS4冠</span>
                       </div>
			         </li>  
			         <li><a href=""><img src="<?php echo IMG_PATH;?>dianjing/sy/2.jpg" style=""/></a>
                       <div class='slide-mask'>
                       	<span>二追三魔王降临 RTZ影魔助EG登顶TS4冠</span>
                       </div>

			         </li>   -->
			      </ul> 
			</div> 
		</div>
		<div class='banner fr'>
			
			<ul>
				<!-- 首页图推荐 12-->
				<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=06cf4f17359664a38fb8a95c0e1abe9b&action=position&posid=12&order=listorder+desc&num=4\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'position')) {$data = $content_tag->position(array('posid'=>'12','order'=>'listorder desc','limit'=>'4',));}?>
			      	<?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>
			      	<a href="<?php echo $v['url'];?>">
				    <li>
						
						<img src="<?php echo $v['thumb'];?>">
						<span class='name'><?php echo $v['title'];?></span>
					</li>
					</a>
			      	<?php $n++;}unset($n); ?> 
			      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>

			</ul>
		</div>

		<div class='title-sy fl list-title2' >
		     <i class="icon-book fl"></i>&nbsp;
			<h2 style="display:inline-block;"><?php echo $CATEGORYS['6']['catname'];?></h2>
			<span ><a href="" class='word fr more2'>more>></a></span>
		</div>
		<div class='content fl'>
			<ul id="news">
               <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=dd0a926e525b1a24375ff87a99f346db&action=lists&where=status%3D99+and+thumb%21%3D%27%27&all=all&order=id+desc&catid=6&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('where'=>'status=99 and thumb!=\'\'','all'=>'all','order'=>'id desc','catid'=>'6','limit'=>'5',));}?>
                <?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>
                <li>
					<div class="list-left fl">
						
						<a href=""><img src="<?php echo $v['thumb'];?>" ></a>
					</div>
					<div class="list-right fr">
						
						<h4><a href="<?php echo $v['url'];?>"><?php echo $v['title'];?></a></h4>
						<p class='word'><?php echo $v['description'];?></p>
						<p class='list-footer'>
						<i class='icon icon-clock'></i>
							<span>
							<?php echo date('Y年m月d日',$v['inputtime']);?>
						</span>
						</p>
					</div>
				</li>
                <?php $n++;}unset($n); ?>

               <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
			</ul>
		</div>


		<div class='title-sy fl list-title2' >
		     <i class="icon-book fl"></i>&nbsp;
			<h2 style="display:inline-block;"><?php echo $CATEGORYS['4']['catname'];?></h2>
			<span ><a href="" class='word fr more2'>more>></a></span>
		</div>
		<div class='content fl'>
			<ul id="news">
               <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=b2d02f5b4100ec363193c61cd1a2d405&action=lists&where=status%3D99+and+thumb%21%3D%27%27&all=all&order=id+desc&catid=4&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('where'=>'status=99 and thumb!=\'\'','all'=>'all','order'=>'id desc','catid'=>'4','limit'=>'5',));}?>
                <?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>
                <li>
					<div class="list-left fl">
						
						<a href=""><img src="<?php echo $v['thumb'];?>" ></a>
					</div>
					<div class="list-right fr">
						
						<h4><a href="<?php echo $v['url'];?>"><?php echo $v['title'];?></a></h4>
						<p class='word'><?php echo $v['description'];?></p>
						<p class='list-footer'>
						<i class='icon icon-clock'></i>
							<span>
							<?php echo date('Y年m月d日',$v['inputtime']);?>
						</span>
						</p>
					</div>
				</li>
                <?php $n++;}unset($n); ?>

               <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
			</ul>
		</div>
		<!-- <div class='more fl word' onclick="more()">
			点击加载更多
		</div> -->
	</div>
	<div class='right fr'>
		<!-- 首页头条 2 -->
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=67aeea5a36231efc7335b9759d83c2e5&action=position&posid=2&order=listorder+desc&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'position')) {$data = $content_tag->position(array('posid'=>'2','order'=>'listorder desc','limit'=>'5',));}?>
      	<?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>
      	<?php if($n ==1) { ?>
          <div class='img-mask'>
			<a href="<?php echo $v['url'];?>"><img src="<?php echo $v['thumb'];?>"></a>
			<div class='word-mask'>
				<a href="<?php echo $v['url'];?>"><?php echo $v['title'];?></a>
			</div>
		</div>
		<?php } else { ?>
		<?php if($n ==2) { ?>
          <div class='right-list1'>
			<ul>
		<?php } ?>
		<li>
					
			<a href="<?php echo $v['url'];?>">
				<span class='word fl'><?php echo $v['title'];?> </span>
			<em class='word fr'><?php echo date('m-d',$v['inputtime']);?></em>
			</a>
		</li>
		
      	<?php } ?>
      	<?php $n++;}unset($n); ?> 
      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		</ul>
		</div>
		<!-- <div class='right-list1'>
			<ul>
				<li>
					
					<a href="">
						<span class='word fl'>LOL2016MSI季中邀请赛小组赛 RNG vs CLG直播地址 </span>
					<em class='word fr'>05-03</em>
					</a>
				</li>
				<li>
					
					<a href="">
						<span class='word fl'>LOL2016MSI季中邀请赛小组赛 RNG vs CLG直播地址 </span>
					<em class='word fr'>05-03</em>
					</a>
				</li>
				<li>
					
					<a href="">
						<span class='word fl'>LOL2016MSI季中邀请赛小组赛 RNG vs CLG直播地址 </span>
					<em class='word fr'>05-03</em>
					</a>
				</li>
				<li>
					
					<a href="">
						<span class='word fl'>LOL2016MSI季中邀请赛小组赛 RNG vs CLG直播地址 </span>
					<em class='word fr'>05-03</em>
					</a>
				</li>
			</ul>
		</div> -->

		<div class='list-title1'>
			<h2>近期赛事</h2>
		</div>
		<!-- 首页顶部兰 9 -->
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=2772f4c86876378b2dcb0941cb693016&action=position&posid=9&thumb=1&order=listorder+desc&num=3+\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'position')) {$data = $content_tag->position(array('posid'=>'9','thumb'=>'1','order'=>'listorder desc','limit'=>'3',));}?>
      	<?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>

      	<div class='img-mask'>
			<a href="<?php echo $v['url'];?>"><img src="<?php echo $v['thumb'];?>"></a>
			<div class='word-mask'>
				<a href="<?php echo $v['url'];?>"><?php echo $v['title'];?></a>
			</div>
		</div>
      	<?php $n++;}unset($n); ?> 
      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		
		<div class='list-title1'>
			<h2><?php echo $CATEGORYS['6']['catname'];?> -热点</h2>
		</div>
		<div class='right-list2'>
			<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=c608b5f94c5bd6363ff5d29671488e7a&action=position&posid=10&thumb=1&order=listorder+desc&num=6+where%3D&catid=6\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'position')) {$data = $content_tag->position(array('posid'=>'10','thumb'=>'1','order'=>'listorder desc','catid'=>'6','limit'=>'6',));}?>
             <?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>
             <?php if($n==1) { ?>
              <div class='right-list2-up'>
				<div class='right-list2-img fl'>
				<a href="<?php echo $v['url'];?>">
					<img src="<?php echo $v['thumb'];?>">
				     <span class='word'><?php echo $v['title'];?></span>
				</a>
			</div>
             <?php } elseif ($n==2) { ?>
				<div class='right-list2-img fr'>
				<a href="<?php echo $v['url'];?>">
					<img src="<?php echo $v['thumb'];?>">
				     <span class='word'><?php echo $v['title'];?></span>
				</a>
			</div>
			</div>
             <?php } elseif ($n==3) { ?>
             <ul class='right-list2-down'>
				<li>
					
					<a href="<?php echo $v['url'];?>">
						<span class='word fl'><?php echo $v['title'];?></span>
					<em class='word fr'><?php echo date('m-d',$v['inputtime']);?></em>
					</a>
				</li>
             <?php } else { ?>
             <li>
					
					<a href="<?php echo $v['url'];?>">
						<span class='word fl'><?php echo $v['title'];?></span>
					<em class='word fr'><?php echo date('m-d',$v['inputtime']);?></em>
					</a>
				</li>
             <?php } ?>
             <?php $n++;}unset($n); ?>
             </ul>
			<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
			
		</div>

		

		<div class='list-title1'>
			<h2>电竞知名人物</h2>
		</div>
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=234dd1904f637e8a676884944213d9e4&action=category&catid=7&num=8&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'7','siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'8',));}?>

		<?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>
        <div class='img-mask fl' style="width:80px;height:100px;margin-bottom:20px;margin-right:15px">
		
			<a href="<?php echo $v['url'];?>"><img src="<?php echo $v['image'];?>"></a>
			<div class='word-mask'>
				<a href=""><?php echo $v['catname'];?></a>
			</div>
		</div>
		<?php $n++;}unset($n); ?>

		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		
	</div><input type='hidden' id='position' value='0'>
</div>
</div>
<div class='left-banner'>123123</div>
<script type="text/javascript">
	//加载更多
	function more(){

		var position = $("#position").val();
		if(position<=160){

			$.ajax({

				url:"<?php echo APP_PATH;?>?m=content&c=index&a=more",
				data:{position:position},
				beforesend:function(){

					
				},
				success:function(data){

				var arr = eval("("+data+")")
				if(arr['status']==1){

					$("#news").append(arr['str'])
					position = position*1+20
					$("#position").val(position)
				}else{

					alert('没有更多信息')
				}
				}

			})
		}
	}

</script>
<?php include template("content","footer_new"); ?>
